using System;
using System.Collections.Generic;

namespace UnityEngine.Recorder
{
	public class InputBinder : RecorderInputSetting
	{
		[SerializeField]
		private string m_TypeName;

		public string typeName
		{
			get
			{
				return m_TypeName;
			}
			set
			{
				if (string.IsNullOrEmpty(value))
				{
					throw new ArgumentException("Invalid type name value being set!");
				}
				m_TypeName = value;
			}
		}

		public override Type inputType
		{
			get
			{
				if (string.IsNullOrEmpty(typeName))
				{
					throw new Exception("Invalid/uninitialized type!");
				}
				return Type.GetType(typeName);
			}
		}

		public override bool ValidityCheck(List<string> errors)
		{
			return false;
		}
	}
}
